<?php

require_once(SITE_ROOT . 'lib/Smarty/Smarty.class.php');

// Extend the Smarty object
class SmartyMaptrick extends Smarty {

	function __construct() {
		parent::__construct();

		$this->setTemplateDir(SITE_ROOT . 'templates/');
		$this->setCompileDir(SITE_ROOT . 'tmp/templates_c/');
		$this->setCacheDir(SITE_ROOT . 'tmp/cache/');
		$this->setConfigDir(SITE_ROOT . 'config/');

		// Enable debugging via URL
		// This is recommended for development phases only
		//$this->debugging_ctrl = 'URL';
		
		$this->loadFilter("variable", "htmlspecialchars");
	}

}

?>